Installing Web Servers
A Web server is a software specially created to deploy web portals
created in different programming languages.This document briefly explains how to install Web servers on different operating systems. Create Web Server in CentOSCentOS is a Linux-based system, and allows you to install Web servers like Apache or Tomcat. Once installed the base operating system proceeds to install the corresponding package, in this example Apache. Install Apache and PHP with the command: #yum install httpd php Once the packages are installed, start the httpd service with the command: #service httpd start You can now create a test page and display it. Create the index.html file in the /var/www/html: #vi /var/www/html/index.html Add any test code, in this case: <html> Hola Mundo </html>To the WebSite be online, setup a HTTP server and a virtual host. Create Web Server on UbuntuCentOS is a Linux-based system, and allows you to install Web servers like Apache or Tomcat. Once installed the base operating system proceeds to install the corresponding package, in this example Apache. Install Apache and PHP with the command: #aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 php Once the packages are installed, start the apache service with the command: #apache2ctl startYou can now create a test page and display it. Create the index.html file in the /etc/apache2/htdocs: #vi /etc/apache2/htdocs/index.htmlAdd any test code, in this case: <html> Hola Mundo </html>To the WebSite be online, setup a HTTP server and a virtual host. Create Web Server in WindowsWindows Server uses a role called Web Server IIS as a main service for deployment of web pages. Installation is simple and quick, when the base system is installed. Enter the Server Manager, click on the "Add roles and features" option. In the left menu click on the "Server Roles" option and choose Web Server (IIS) In the summary window installation, click on Install. The services are installed and started. Enter http://localhost/ to display the test page. To the WebSite be online, setup a HTTP server and a virtual host. |
Contents
• Create Web Server in CentOS• Create Web Server on Ubuntu• Create Web Server in Windows |